<%--
  添加字典分类模板
  User: guoyao
  Date: 15-12-24
  Time: 下午2:55
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/tags/taglibs.jsp" %>
<html>
<head>
    <title>添加字典信息</title>
</head>
<body>
    <div class="easyui-layout" data-options="fit:true">
        <form id="submitForm" method="post">
            <div data-options="region:'center',border:false" style="padding:5px;background:#fff;border:1px solid #ccc;">
                <table class="doc-table">
                    <tr>
                        <th width="25%"></th>
                        <th width="75%"></th>
                    </tr>
                    <tr>
                        <td class="labelTd">分类:</td>
                        <td>
                            <select type="text" name="classId" id="classId" class="easyui-combogrid" style="width: 250px;" data-options="
                                    validType: 'selectValueRequired',
                                    panelWidth: 250,
                                    idField: 'classId',
                                    textField: 'className',
                                    url: '<c:url value="/base/queryCodeClassesForSelectMenu.html" />',
                                    method: 'post',
                                    rownumbers: true,
                                    loadMsg: '数据加载中.....',
                                    columns: [[
                                        {field:'classId',title:'分类ID',width:100},
                                        {field:'className',title:'分类名称',width:100},
                                    ]],
                                    onLoadError: function (httpRequest) {
                                        displayJsonError(httpRequest);
                                    },
                                    required:true
                                "></select>
                        </td>
                    </tr>
                    <tr>
                        <td class="labelTd">ID:</td>
                        <td>
                            <input type="text" name="codeId" class="easyui-numberbox" value="0" data-options="
                                required: true,
                                min: 0
                            ">
                        </td>
                    </tr>
                    <tr>
                        <td class="labelTd">名称:</td>
                        <td>
                            <input type="text" name="codeName" class="easyui-validatebox"  data-options="
                                validType: 'chinese',
                                required: true
                            ">
                        </td>
                    </tr>
                    <tr>
                        <td class="labelTd">简介:</td>
                        <td>
                            <input name="description" type="text" class="easyui-validatebox" data-options="
                                required: true
                            ">
                        </td>
                    </tr>
                    <%--<tr>
                        <td class="labelTd">上一级:</td>
                        <td>
                            <input name="codeSuperior" class="easyui-combotree" style="width:200px;"
                                   data-options="url:'<c:url value="/base/queryCodesForTree.html" />'">
                        </td>
                    </tr>--%>
                    <tr>
                        <td class="labelTd">是否有效:</td>
                        <td>
                            <input class="easyui-combobox" name="delTag" data-options="
                                       validType: 'selectValueRequired',
                                       valueField: 'id',
                                       textField: 'text',
                                       url:'<c:url value="/sys/queryComboboxByDict.html?type=DEL_TAG_TYPE&selected=0" />',
                                       panelHeight:'auto',
                                       onLoadError: function (httpRequest) {
                                            displayJsonError(httpRequest);
                                       },
                                       required:true"/>
                        </td>
                    </tr>
                </table>
            </div>
            <div data-options="region:'south',border:false" style="text-align:right;padding:5px 0;">
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="insertSubmit()">提交</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeWindow()">取消</a>
            </div>
        </form>
    </div>
</body>
</html>
